package com.speech.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class LoginInfo implements Parcelable {
    /**
     * token : 81e3473db6f5978801e28225ed294508
     * uid : 1771843265985911080
     * phone : 17000107146
     */

    private String token;
    private String uid;
    private String phone;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.token);
        dest.writeString(this.uid);
        dest.writeString(this.phone);
    }

    public LoginInfo() {
    }

    protected LoginInfo(Parcel in) {
        this.token = in.readString();
        this.uid = in.readString();
        this.phone = in.readString();
    }

    public static final Parcelable.Creator<LoginInfo> CREATOR = new Parcelable.Creator<LoginInfo>() {
        @Override
        public LoginInfo createFromParcel(Parcel source) {
            return new LoginInfo(source);
        }

        @Override
        public LoginInfo[] newArray(int size) {
            return new LoginInfo[size];
        }
    };
}
